package com.shigen.file.req;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author shigenfu
 * @date 2022/6/13 3:02 下午
 */
public class ProjectDataRequest {

  /**
   * 分页查询
   */
  @Data
  public static class PageRequest extends com.shigen.file.common.PageRequest {
    /**
     * 项目id
     */
    @NotEmpty(message = "表单id不能为空")
    private String projId;
    /**
     * 表单收集状态
     */
    @NotNull(message = "是否展示额外提交信息不能为空")
    private Boolean withAdditionInfo;
  }

  @Data
  public static class AddFormRequest {
    /**
     * 项目id
     */
    @NotEmpty(message = "表单id不能为空")
    private String projId;
    /**
     * 填写的数据
     */
    @ApiModelProperty(value = "填写的数据")
    @NotNull(message = "表单数据为空")
    private Object data;
    /**
     * 耗时
     */
    @ApiModelProperty(value = "耗时ms")
    private Long timeUse;
    /**
     * 设备码
     */
    @ApiModelProperty(value = "设备码")
    @NotEmpty(message = "设备码不能为空")
    private String murmur;
  }

}
